package com.xuecheng.content.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xuecheng.content.entity.CoursePub;

import java.util.Map;

/**
 * <p>
 * 课程发布 服务类
 * </p>
 *
 * @author itcast
 * @since 2022-06-25
 */
public interface CoursePubService extends IService<CoursePub> {

    /**
     * 课程预览
     * @param courseBaseId 课程id
     * @param companyId 公司id
     * @return Map
     */
    Map<String,Object> previewCourse(Long courseBaseId,Long companyId);


    /**
     * 教学机构课程发布
     * @param courseBaseId
     * @param companyId
     * @param isReSend
     */
    void publishCourse(Long courseBaseId,Long companyId,boolean isReSend);

}
